<template>
    <div>
        自己的input：
        <input v-model='name'/>
    </div>
</template>
<script>
// @ is an alias to /src
export default {
    name:'my-input',
    props:['value'],
    computed: {
      name:{
        get(){return this.value},
        set(val){
          this.$emit('input',val)
        }
      }
    },
}
</script>
<style lang="less">

</style>